package ch04.d4;

import org.junit.Assert;
import org.junit.Test;

import java.util.Scanner;

public class StaticTest {
    @Test
    public void testNonStatic(){
        A a1 = new A();
        A a2 = new A();
        a1.x = 1;
        a2.x = 2;

        System.out.println(a1.x);
        System.out.println(a2.x);
    }

    @Test
    public void testStatic(){


        A.m1();
    }

    @Test
    public void testStudent(){
        Student s1=new Student();
        Student s2=new Student();

        s1.school="经贸";
        s2.school="清华";

        System.out.println(s1.getCount());//2
        System.out.println(s2.getCount());//2

        Student s3=new Student();

        System.out.println(s1.getCount());//3

        Student.add(1,2);

        Math.random();

        System.out.println();

        Scanner scan=new Scanner(System.in);

        Assert.assertEquals(1,1);


    }



    public static void main(String[] args) {

        C b=new C();
        C b2=new C();





    }











}
